package com.db.exceptions;

import com.db.domain.bank.Account;

public class NotEnoughFundsException extends BankException {
    private Account account;
    private double allowedBalance;

    public Account getAccount() {
        return account;
    }

    public double getAllowedBalance() {
        return allowedBalance;
    }

    public NotEnoughFundsException(Account account, double allowedBalance) {
        this.account = account;
        this.allowedBalance = allowedBalance;
    }
}
